package com.aids_malaria.db.dao;

import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Delete;
import android.arch.persistence.room.Insert;
import android.arch.persistence.room.OnConflictStrategy;
import android.arch.persistence.room.Query;

import com.aids_malaria.http.response.WorkAreaPersonID;
import com.aids_malaria.http.response.WorkAreaResponse;

import java.util.ArrayList;
import java.util.List;

@Dao
public interface WorkAreaResponseDao {
    @Query("delete from workAreaResponse")
    int deleteAll();

    @Query("SELECT * FROM workAreaResponse")
    List<WorkAreaResponse> getAll();

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    List<Long> insertAll(List<WorkAreaResponse> users);

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    Long insert(WorkAreaResponse users);
}
